AssignmentServiceglobal with sharing class AssignmentService Service providing functionality relating to Assignments. Methods
updateTimecardRollupsAsyncglobal static Id updateTimecardRollupsAsync(Set<Id> assignmentIds) Recalculates fields on Assignment whose values are calculated from Timecards linked to the assignment. This version may run asynchronously to handle large volumes of data. If you want the calculation performed immediately, call pse.AssignmentService.updateTimecardRollups(Set<Id> assignmentIds) instead.
Input Parameters
Return ValueThe Id of the ApexAsyncJob that performs the calculation. Note this job may create other async jobs. So the rollup process might run for some time after the job in the return value has completed. Sample Code//Note: This sample code is for demonstration purposes only. It is not intended for //use in a production environment, is not guaranteed against defects or errors, and //is in no way optimized or streamlined. You need to provide some sample code updateTimecardRollupsglobal static void updateTimecardRollups(Set<Id> assignmentIds) Recalculates fields on Assignment whose values are calculated from Timecards linked to the assignment. This version will execute synchronously, but may fail with large volumes of data. If the calculation needs to handle large numbers of timecards or assignments, call pse.AssignmentService.updateTimecardRollupsAsync(Set<Id> assignmentIds) instead.
Input Parameters
Sample Code//Note: This sample code is for demonstration purposes only. It is not intended for //use in a production environment, is not guaranteed against defects or errors, and //is in no way optimized or streamlined. You need to provide some sample code updateExpenseRollupsAsyncglobal static Id updateExpenseRollupsAsync(Set<Id> assignmentIds) Recalculates fields on Assignment whose values are calculated from Expenses linked to the assignment. This version may run asynchronously to handle large volumes of data. If you want the calculation performed immediately, call pse.AssignmentService.updateExpenseRollups(Set<Id> assignmentIds) instead.
Input Parameters
Return ValueThe Id of the ApexAsyncJob that performs the calculation. Note this job may create other async jobs. So the rollup process might run for some time after the job in the return value has completed. Sample Code//Note: This sample code is for demonstration purposes only. It is not intended for //use in a production environment, is not guaranteed against defects or errors, and //is in no way optimized or streamlined. You need to provide some sample code updateExpenseRollupsglobal static void updateExpenseRollups(Set<Id> assignmentIds) Recalculates fields on Assignment whose values are calculated from Expenses linked to the assignment. This version will execute synchronously, but may fail with large volumes of data. If the calculation needs to handle large numbers of expenses or assignments, call pse.AssignmentService.updateExpenseRollupsAsync(Set<Id> assignmentIds) instead.
Input Parameters
Sample Code//Note: This sample code is for demonstration purposes only. It is not intended for //use in a production environment, is not guaranteed against defects or errors, and //is in no way optimized or streamlined. You need to provide some sample code |